package com.ll.domain.shop.convert;

import com.ll.app.api.req.AddShopReqDTO;
import com.ll.dal.po.GoodsPO;
import com.ll.dal.po.ShopPO;
import com.ll.domain.shop.dto.GoodsDTO;
import com.ll.domain.shop.dto.ShopDTO;
import org.springframework.beans.BeanUtils;

public class ShopConvert {


    public static ShopDTO PO2DTO(ShopPO po) {
        ShopDTO dto = new ShopDTO();
        BeanUtils.copyProperties(po, dto);
        return dto;
    }

    public static ShopPO addShopReqDTO2PO(AddShopReqDTO reqDTO){
        ShopPO dto = new ShopPO();
        BeanUtils.copyProperties(reqDTO, dto);
        return dto;
    }

}
